/****************************************************************************
 * Chariott - Continuous Integration Testing Tool
 * Zaid Mohsin
 * The University of York
 * 2012/2013
 * MSc in Information Technology
 * All rights reserved.
 ****************************************************************************/
package chariott.testing;

/**
 * a class that specifies a single Junit test method to be run on the script
 * 
 * @author Zaid
 * 
 */
public class TestMethod implements RunItem {

	private double weight;
	private String methodName;
	private String testCaseName;

	public TestMethod(String methodName, String testCaseName, double weight) {
		this.weight = weight;
		this.methodName = methodName;
		this.testCaseName = testCaseName;
	}

	public String toString() {
		return ("Test Case: " + testCaseName + "Method Name: " + methodName);
	}

	public String getMethodName() {
		return methodName;
	}

	public String getTestCaseName() {
		return testCaseName;
	}

	public double getWeight() {
		return weight;
	}

	@Override
	public String getName() {
		return methodName;
	}
}
